Imports DAO
Imports DTO
Public Class GiaoVienBUS
    Inherits AbstractBUS
    Public Sub Them(ByVal gvDTO As GiaoVienDTO)
        Dim gvDAO As New GiaoVienDAO()
        gvDAO.Them(gvDTO)
    End Sub
    Public Sub XoaTheoMa(ByVal maGiaoVien As String)
        Dim gvDAO As New GiaoVienDAO()
        gvDAO.XoaTheoMa(maGiaoVien)

    End Sub
    Public Sub Sua(ByVal gvDTO As GiaoVienDTO)
        Dim gvDAO As New GiaoVienDAO()
        gvDAO.Sua(gvDTO)
    End Sub
    Public Function TiemKiemTheoMa(ByVal maGiaoVien As String) As GiaoVienDTO
        Dim gvDTO As GiaoVienDTO
        Dim gvDAO As New GiaoVienDAO()
        gvDTO = gvDAO.TiemKiemTheoMa(maGiaoVien)
        Return gvDTO
    End Function
    Public Function LayBang() As DataTable
        Dim dt As DataTable
        Dim gvDAO As New GiaoVienDAO()
        dt = gvDAO.LayBang()
        Return dt
    End Function
    Public Sub CapNhatBang(ByVal dt As DataTable)
        Dim gvDAO As New GiaoVienDAO()
        gvDAO.CapNhatBang(dt)
    End Sub
    Public Function LayDanhSach() As IList
        Dim ds As IList
        Dim gvDAO As New GiaoVienDAO()
        ds = gvDAO.LayDanhSach()
        Return ds
    End Function

End Class
